#include <iostream>
#include <vector>
using namespace std;


int main(void)
{
    // 原型: pair<T1, T2> p1(var1, var2)
    vector<pair<string, int>> fields = {
        {"name", 1},
        {"age", 2},
        {"gender", 3}
    };

    for (auto& field : fields)
    {
        cout << field.first << " " << field.second << endl;
    }

    return 0;
}